<?php /* Smarty version 2.6.18, created on 2008-02-27 23:25:24
         compiled from votes.tpl */ ?>
<span class="title_blue">Évaluation</span><br />
<span class="subtitle_gray">Montagne: <?php echo $this->_tpl_vars['nomMontagne']; ?>
</span><br />
<br />
<script type="text/javascript" >
<?php echo '
	function envoiVote( div, noMontagne, noUsager, noCritere, valeur ){
		new Ajax.Updater(div,"/scripts/addVote.php",{method: \'get\', parameters: {div: div, montagne: noMontagne, usager: noUsager, critere: noCritere, valeur: valeur } } );
	}
'; ?>

</script>
<p class="body_text" align="center">
<?php $_from = $this->_tpl_vars['listeCriteres']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['critere']):
?>
<?php echo $this->_tpl_vars['critere']['nomCritere']; ?>

<div id="critere<?php echo $this->_tpl_vars['critere']['noCritere']; ?>
">
	<ul class="star-rating">
		<li class="current-rating" style="width:<?php echo $this->_tpl_vars['critere']['note']; ?>
%;"></li>
		<li><a onClick="envoiVote( 'critere<?php echo $this->_tpl_vars['critere']['noCritere']; ?>
', <?php echo $this->_tpl_vars['noMontagne']; ?>
,<?php echo $this->_tpl_vars['noUsager']; ?>
,<?php echo $this->_tpl_vars['critere']['noCritere']; ?>
,1 );" title="1 étoile sur 5 (très faible)" class="one-star">1</a></li>
		<li><a onClick="envoiVote( 'critere<?php echo $this->_tpl_vars['critere']['noCritere']; ?>
', <?php echo $this->_tpl_vars['noMontagne']; ?>
,<?php echo $this->_tpl_vars['noUsager']; ?>
,<?php echo $this->_tpl_vars['critere']['noCritere']; ?>
,2 );" title="2 étoiles sur 5 (faible)" class="two-stars">2</a></li>
		<li><a onClick="envoiVote( 'critere<?php echo $this->_tpl_vars['critere']['noCritere']; ?>
', <?php echo $this->_tpl_vars['noMontagne']; ?>
,<?php echo $this->_tpl_vars['noUsager']; ?>
,<?php echo $this->_tpl_vars['critere']['noCritere']; ?>
,3 );" title="3 étoiles sur 5 (moyen)" class="three-stars">3</a></li>
		<li><a onClick="envoiVote( 'critere<?php echo $this->_tpl_vars['critere']['noCritere']; ?>
', <?php echo $this->_tpl_vars['noMontagne']; ?>
,<?php echo $this->_tpl_vars['noUsager']; ?>
,<?php echo $this->_tpl_vars['critere']['noCritere']; ?>
,4 );" title="4 étoiles sur 5 (bon)" class="four-stars">4</a></li>
		<li><a onClick="envoiVote( 'critere<?php echo $this->_tpl_vars['critere']['noCritere']; ?>
', <?php echo $this->_tpl_vars['noMontagne']; ?>
,<?php echo $this->_tpl_vars['noUsager']; ?>
,<?php echo $this->_tpl_vars['critere']['noCritere']; ?>
,5 );" title="5 étoiles sur 5 (très bon)" class="five-stars">5</a></li>
	</ul>
</div>
<br />
<?php endforeach; endif; unset($_from); ?>

<br />
</p>